css: 'none' is not a value background-repeat
authorBenjamin Otte <otte@redhat.com>
Fri, 30 Dec 2011 12:13:44 +0000 (13:13 +0100)
committerBenjamin Otte <otte@redhat.com>
Mon, 9 Jan 2012 17:37:51 +0000 (18:37 +0100)
gtk/gtkcsstypesprivate.h
gtk/gtkthemingbackground.c

index ff1a844f2d6c351563ac33283edc48c107604ade..23ad3db5531318364c57d36e557ec63eb2f7cbbe 100644 (file)
@@ -31,7 +31,6 @@ typedef enum {
 } GtkCssSpecialValue;
 
 typedef enum {
-  GTK_CSS_BACKGROUND_REPEAT_STYLE_NONE,
   GTK_CSS_BACKGROUND_REPEAT_STYLE_REPEAT,
   GTK_CSS_BACKGROUND_REPEAT_STYLE_NO_REPEAT,
 } GtkCssBackgroundRepeatStyle;
index a525e185563b01bd638212ef10b3f858271d0359..dda56e418f247f06e32246070f30da3f2195552c 100644 (file)
@@ -307,8 +307,7 @@ _gtk_theming_background_paint (GtkThemingBackground *bg,
       if (cairo_pattern_get_surface (bg->pattern, &surface) != CAIRO_STATUS_SUCCESS)
         surface = NULL;
 
-      if (surface && repeat &&
-          repeat->repeat != GTK_CSS_BACKGROUND_REPEAT_STYLE_NONE)
+      if (surface && repeat)
         {
           scale_width = cairo_image_surface_get_width (surface);
           scale_height = cairo_image_surface_get_height (surface);